package com.jx.driving.request;

import com.jx.driving.message.TimeTerminalRequestMessage;
import com.jx.driving.protocol.terminal.annotation.ByteAnnotation;
import com.jx.driving.protocol.terminal.annotation.LimitedStringAnnotation;
import com.jx.driving.protocol.terminal.annotation.StringAnnotation;
import com.jx.driving.protocol.terminal.annotation.TerminalAnnotation;
import com.jx.driving.protocol.terminal.annotation.WordAnnotation;

/**
 * 终端注册请求
 * 
 * @author shenliuyang
 *
 *         2016年8月9日下午1:49:19
 */
@TerminalAnnotation
public class Terminal0x0100Request extends TimeTerminalRequestMessage {

    @WordAnnotation(order = 1)
    private int provinceId;// 省域ID
    @WordAnnotation(order = 2)
    private int cityId;// 市县ID
    @LimitedStringAnnotation(value = 5, order = 3)
    private String manufactureId;// 终端制造商ID
    @LimitedStringAnnotation(value = 20, order = 4)
    private String deviceModel;// 终端型号
    @LimitedStringAnnotation(value = 7, order = 5)
    private String deviceSequence;// 计时终端出厂序列号
    @LimitedStringAnnotation(value = 15, order = 6)
    private String imei;//
    @ByteAnnotation(order = 7)
    private short signColor;// 车牌颜色
    @StringAnnotation(order = 8)
    private String identification;// 车辆标识

    public int getProvinceId() {
	return provinceId;
    }

    public void setProvinceId(int provinceId) {
	this.provinceId = provinceId;
    }

    public int getCityId() {
	return cityId;
    }

    public void setCityId(int cityId) {
	this.cityId = cityId;
    }

    public String getManufactureId() {
	return manufactureId;
    }

    public void setManufactureId(String manufactureId) {
	this.manufactureId = manufactureId;
    }

    public String getDeviceModel() {
	return deviceModel;
    }

    public void setDeviceModel(String deviceModel) {
	this.deviceModel = deviceModel;
    }

    public String getDeviceSequence() {
	return deviceSequence;
    }

    public void setDeviceSequence(String deviceSequence) {
	this.deviceSequence = deviceSequence;
    }

    public String getImei() {
	return imei;
    }

    public void setImei(String imei) {
	this.imei = imei;
    }

    public short getSignColor() {
	return signColor;
    }

    public void setSignColor(short signColor) {
	this.signColor = signColor;
    }

    public String getIdentification() {
	return identification;
    }

    public void setIdentification(String identification) {
	this.identification = identification;
    }

    @Override
    public String toString() {
	StringBuilder builder = new StringBuilder();
	builder.append("Terminal0X0100Request [provinceId=").append(provinceId).append(", cityId=").append(cityId)
		.append(", manufactureId=").append(manufactureId).append(", deviceModel=").append(deviceModel)
		.append(", deviceSequence=").append(deviceSequence).append(", imei=").append(imei)
		.append(", signColor=").append(signColor).append(", identification=").append(identification)
		.append("]");
	return builder.toString();
    }

}
